<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>排行榜</title>
    <style>
        * {
            box-sizing: border-box;
        }
        html,
        body,
        .page {
            margin: 0;
            height: 100%;
            font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
                Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,
                Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
        }
        .page {
            display: flex;
            flex-direction: column;
            background-color: #eee;
            max-width: 1024px;
            margin: auto;
        }
        .top {
            position: relative;
            z-index: 1;
            width: 100%;
            background-color: #d23e34;
            padding-top: 15px;
            box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
        }
        .top-title {
            text-align: center;
            font-size: 18px;
            color: #fff;
            margin: 0 0 15px 0;
            padding-bottom: 15px;
        }
        .tabs {
            padding: 0 15px 15px;
        }
        .tabs > ul {
            margin: 0;
            display: flex;
            border-radius: 10px;
            background-color: #cd2523;
            overflow: hidden;
            padding: 0;
        }
        .tab-item {
            flex: 1;
            text-align: center;
            line-height: 40px;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            list-style: none;
        }
        .tab-active {
            background-color: #b9211f;
        }
        .cats {
            padding: 15px;
            border-radius: 10px 10px 0 0;
            background-color: #fff;
        }
        .cat-list {
            display: flex;
            overflow-x: auto;
            padding: 0;
            margin: 0;
        }
        .cat-list::-webkit-scrollbar {
            display: none;
        }
        .cat-item {
            line-height: 25px;
            background-color: #f7f7f7;
            font-size: 14px;
            color: #333;
            padding: 0 12px;
            border-radius: 5px;
            margin-right: 10px;
            white-space: nowrap;
            list-style: none;
            cursor: pointer;
        }
        .cat-active {
            background-color: #d23e34;
            color: #fff;
        }
        .list {
            position: relative;
            width: 100%;
            flex: 1;
            overflow: auto;
            padding: 15px;
        }
        .sku {
            display: block;
            text-decoration: none;
            padding: 15px;
            border-radius: 10px;
            background-color: #fff;
            margin-bottom: 15px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .sku:last-child {
            margin-bottom: 0;
        }
        .content {
            display: flex;
        }
        .cover {
            width: 115px;
            height: 115px;
            position: relative;
            border-radius: 5px;
            overflow: hidden;
            background-color: #f5f5f5;
        }
        .cover-img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 保持图片比例并填充容器 */
            display: block;
        }
        .cover-rank {
            position: absolute;
            width: 36px;
            left: 0;
            top: 0;
        }
        .info {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 1;
            height: 115px;
            margin-left: 15px;
        }
        .sku-title {
            color: #333;
            font-size: 16px;
            font-weight: 600;
            line-height: 1.5em;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .types {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        .type-item {
            padding: 2px 5px;
            background-color: #f7f7f7;
            border-radius: 3px;
            color: #999;
            font-size: 12px;
        }
        .price {
            color: #d23e34;
            font-size: 13px;
            font-weight: 500;
        }
        .desc {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: #999;
        }
        .source {
            flex: 1;
        }
        .comment {
            background-color: #f7f7f7;
            border-radius: 5px;
            padding: 10px;
            color: #666;
            margin-top: 15px;
            font-size: 14px;
        }
        .comment strong {
            color: #333;
        }
        .desc-number {
            margin-left: 5px;
        }
        .desc .iconfont {
            margin-left: 20px;
        }
        .desc .icon-comment {
            margin-left: 0;
        }
        
        /* 新增的图标样式 */
        .icon {
            display: inline-block;
            width: 16px;
            height: 16px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            vertical-align: middle;
        }
        .icon-comment {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
        }
        .icon-like {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
        }
    </style>
</head>
<body>
    <div class="page">
        <div class="top">
            <div class="top-title">排行榜</div>
            <div class="tabs">
                <ul>
                    <li class="tab-item tab-active">好文精选</li>
                    <li class="tab-item">热门资讯</li>
                </ul>
            </div>
        </div>
        <div class="cats">
            <ul class="cat-list">
                <li class="cat-item cat-active">文章</li>
                <li class="cat-item">视频</li>
                <li class="cat-item">问答</li>
                <li class="cat-item">话题</li>
            </ul>
        </div>
        <div class="list">
            <!-- 排行第1的文章 -->
            <a href="#" class="sku">
                <div class="content">
                    <div class="cover">
                        <img src="https://pic1.zhimg.com/v2-64e4f1d176915ccea287bf9fc9f98b68_1440w.jpg" 
                             alt="安卓电视通过KODI看IPTV" 
                             class="cover-img">
                        <div class="cover-rank">
                            <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect width='36' height='36' fill='%23d23e34'/%3E%3Ctext x='18' y='25' font-size='20' font-weight='bold' text-anchor='middle' fill='white'%3E1%3C/text%3E%3C/svg%3E" 
                                 alt="TOP 1">
                        </div>
                    </div>
                    <div class="info">
                        <div class="sku-title">安卓电视通过 KODI 看 IPTV</div>
                        <div class="types">
                            <span class="type-item">KODI</span>
                            <span class="type-item">IPTV</span>
                            <span class="type-item">安卓电视</span>
                        </div>
                        <div class="desc">
                            <span class="icon icon-comment"></span>
                            <span class="desc-number">105</span>
                            <span class="icon icon-like"></span>
                            <span class="desc-number">345</span>
                        </div>
                    </div>
                </div>
            </a>
            
            <!-- 排行第2的文章 -->
            <a href="#" class="sku">
                <div class="content">
                    <div class="cover">
                        <img src="https://ts1.tc.mm.bing.net/th/id/R-C.2ccb18453233bc208aa701aed7cdc50b?rik=KnGKphM%2bo8Oh%2fA&riu=http%3a%2f%2fpic.ntimg.cn%2ffile%2f20190325%2f6445351_093400977083_2.jpg&ehk=faZE9aFsm6VrtJQO3NU1BsNiXG7G9Bhu7IsF9PrHGOo%3d&risl=&pid=ImgRaw&r=0" 
                             alt="起跑线26期：5km跑步，你到了哪一级别？" 
                             class="cover-img">
                        <div class="cover-rank">
                            <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect width='36' height='36' fill='%23d23e34'/%3E%3Ctext x='18' y='25' font-size='20' font-weight='bold' text-anchor='middle' fill='white'%3E2%3C/text%3E%3C/svg%3E" 
                                 alt="TOP 2">
                        </div>
                    </div>
                    <div class="info">
                        <div class="sku-title">起跑线26期：5km跑步，你到了哪一级别？学会这几个跑步技巧，助你提升PB</div>
                        <div class="types">
                            <span class="type-item">跑步</span>
                            <span class="type-item">技巧</span>
                            <span class="type-item">运动</span>
                        </div>
                        <div class="desc">
                            <span class="icon icon-comment"></span>
                            <span class="desc-number">151</span>
                            <span class="icon icon-like"></span>
                            <span class="desc-number">132</span>
                        </div>
                    </div>
                </div>
            </a>
            
            <!-- 排行第3的文章 -->
            <a href="#" class="sku">
                <div class="content">
                    <div class="cover">
                        <img src="https://ts1.tc.mm.bing.net/th/id/R-C.bce1d2a0c7a6316d285d3deebfd0f209?rik=CDf22Xte51gOOg&riu=http%3a%2f%2fwww.xitongzhijia.net%2fuploads%2fallimg%2f170210%2f76-1F210103U7-water.jpg&ehk=pITwmTx6A4OZy4qZif8H%2f1T6EvCtEH5RPUDKbdha0sU%3d&risl=&pid=ImgRaw&r=0" 
                             alt="百度搜索使用技巧大全，让你高效找到所需内容" 
                             class="cover-img">
                        <div class="cover-rank">
                            <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect width='36' height='36' fill='%23d23e34'/%3E%3Ctext x='18' y='25' font-size='20' font-weight='bold' text-anchor='middle' fill='white'%3E3%3C/text%3E%3C/svg%3E" 
                                 alt="TOP 3">
                        </div>
                    </div>
                    <div class="info">
                        <div class="sku-title">百度搜索使用技巧大全，让你高效找到所需内容</div>
                        <div class="types">
                            <span class="type-item">百度</span>
                            <span class="type-item">搜索</span>
                            <span class="type-item">技巧</span>
                        </div>
                        <div class="desc">
                            <span class="icon icon-comment"></span>
                            <span class="desc-number">89</span>
                            <span class="icon icon-like"></span>
                            <span class="desc-number">215</span>
                        </div>
                    </div>
                </div>
            </a>
        </div>
    </div>
</body>
</html>